/* 问卷提交成功页面样式 */

.survey-success-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.survey-success-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

/* 粒子动画背景 */
.success-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: floatParticles 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    width: 18px;
    height: 18px;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 12px;
    height: 12px;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.particle:nth-child(6) {
    width: 22px;
    height: 22px;
    left: 60%;
    animation-delay: 5s;
    animation-duration: 10s;
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.survey-success-container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.survey-success-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: successCardAppear 0.8s ease-out;
}

@keyframes successCardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.survey-success-body {
    padding: 50px 40px;
}

/* 成功图标容器 */
.survey-success-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.survey-success-icon {
    font-size: 5rem;
    color: #28a745;
    position: relative;
    z-index: 3;
    animation: successBounce 1.2s ease-out;
}

/* 波纹效果 */
.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid #28a745;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 2s ease-out infinite;
    opacity: 0;
}

.success-ripple:nth-child(2) {
    animation-delay: 0.5s;
}

.success-ripple:nth-child(3) {
    animation-delay: 1s;
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 统计信息 */
.survey-success-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.success-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInUp 0.8s ease-out;
    min-width: 120px;
}

.success-stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 2px;
}

.survey-success-title {
    color: #28a745;
    margin-bottom: 16px;
    font-size: 1.8rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.survey-success-message {
    color: #6c757d;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.survey-success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.survey-success-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.survey-success-btn i {
    margin-right: 8px;
}

.survey-success-btn.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.survey-success-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
    color: white;
    text-decoration: none;
}

.survey-success-btn.secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.survey-success-btn.secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 装饰元素 */
.survey-success-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8, #007bff);
}

.survey-success-card {
    position: relative;
}

/* 动画关键帧 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .survey-success-container {
        padding: 15px;
    }
    
    .survey-success-body {
        padding: 40px 24px;
    }
    
    .survey-success-icon {
        font-size: 4rem;
    }
    
    .survey-success-icon-container {
        margin-bottom: 24px;
    }
    
    .survey-success-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .survey-success-message {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .survey-success-stats {
        gap: 16px;
        margin: 24px 0;
    }
    
    .success-stat-item {
        min-width: 100px;
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .survey-success-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .survey-success-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .success-ripple {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .survey-success-body {
        padding: 30px 20px;
    }
    
    .survey-success-icon {
        font-size: 3.5rem;
    }
    
    .survey-success-title {
        font-size: 1.3rem;
    }
    
    .survey-success-message {
        font-size: 14px;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬浮效果 */
.survey-success-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.survey-success-card:hover::before {
    opacity: 0.1;
}

/* 成功徽章样式 */
.survey-success-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
    animation: badgeBounce 1s ease-out 1s both;
}

@keyframes badgeBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 按钮点击波纹效果 */
@keyframes buttonRipple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}